package com.bookocean.application.common;

/**
 * @author gaoxing
 * @date 2025-05-30 15:09:21
 */
public class RedisConstants {

    public static final String BOOK_OCEAN_DAILY_COUNT = "book:ocean:daily:count";

    public static final String BOOK_OCEAN_DAILY_USER = "book:ocean:daily:user:";

    /**
     * 访客审批分布式锁 key 前缀
     */
    public static final String VISITOR_APPROVAL_LOCK_PREFIX = "welink:visitor:lock:";

    // ============================= 小说完结投票相关 =============================
    
    /**
     * 小说完结投票基本信息 key 前缀
     */
    public static final String NOVEL_COMPLETE_VOTE_PREFIX = "novel:complete:vote:";
    
    /**
     * 小说完结投票记录 key 前缀 (Set存储已投票用户ID)
     */
    public static final String NOVEL_COMPLETE_VOTE_RECORDS_PREFIX = "novel:complete:vote:records:";
    
    /**
     * 小说完结投票详情 key 前缀 (Hash存储用户投票选择)
     */
    public static final String NOVEL_COMPLETE_VOTE_DETAILS_PREFIX = "novel:complete:vote:details:";
    
    /**
     * 小说参与者列表 key 前缀
     */
    public static final String NOVEL_PARTICIPANTS_PREFIX = "novel:participants:";
    
    /**
     * 完结投票过期时间（6小时）
     */
    public static final long COMPLETE_VOTE_EXPIRE_HOURS = 6;
}
